package com.erp.bean;

import java.util.Date;

/**
 * @author zch
 * 商品实体类
 */
public class Commodity {

    /**
     * 商品编号
     */
    private int gid;

    /**
     * 商品名称
     */
    private String gname;

    /**
     * 商品价格
     */
    private double price;

    /**
     * 型号
     */
    private String model;

    /**
     * 生产日期
     */
    private Date prddate;

    /**
     * 供应商编号
     */
    private int supid;

    /**
     * 商品类型编号
     */
    private int tyid;

    @Override
    public String toString() {
        return "Commodity{" +
                "gid=" + gid +
                ", gname='" + gname + '\'' +
                ", price=" + price +
                ", model='" + model + '\'' +
                ", prddate=" + prddate +
                ", supid=" + supid +
                ", tyid=" + tyid +
                '}';
    }

    public Commodity() {
    }

    public Commodity(int gid, String gname, double price, String model, Date prddate, int supid, int tyid) {
        this.gid = gid;
        this.gname = gname;
        this.price = price;
        this.model = model;
        this.prddate = prddate;
        this.supid = supid;
        this.tyid = tyid;
    }

    public Commodity(String gname, double price, String model, Date prddate, int supid, int tyid) {
        this.gname = gname;
        this.price = price;
        this.model = model;
        this.prddate = prddate;
        this.supid = supid;
        this.tyid = tyid;
    }

    public int getGid() {
        return gid;
    }

    public void setGid(int gid) {
        this.gid = gid;
    }

    public String getGname() {
        return gname;
    }

    public void setGname(String gname) {
        this.gname = gname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public Date getPrddate() {
        return prddate;
    }

    public void setPrddate(Date prddate) {
        this.prddate = prddate;
    }

    public int getSupid() {
        return supid;
    }

    public void setSupid(int supid) {
        this.supid = supid;
    }

    public int getTyid() {
        return tyid;
    }

    public void setTyid(int tyid) {
        this.tyid = tyid;
    }
}
